<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>M3Gen :: Parsers</title>
		<link rel="stylesheet" href="css/m3gen.css" type="text/css" />
	</head>
	<body>
		<h1>M3Gen :: Parsers</h1>
		<p>
			M3Gen parsers all subclass m3gen.Parser, which is a sublass of m3gen.Base.
			M3Gen includes the following parsers:
			<ul>
				<li>m3gen.JsonObjParser</li>
				<li>m3gen.ChildrenParser</li>				
			</ul>		
		</p>		
		<h2>JsonObjParser</h2>
		<p>
			Parses a JSON object using the ruleSetConfiguration and a specific ruleSet 
			in case an objType with a matching ruleSet can be found for the JSON object. 
			The parsing results in the construction of a nodeObj, later to be transformed to
			a jsTree node (see <a href="builders.html">Builders</a>).
		</p>
		<h2>ChildrenParser</h2>
		<p>
			Parses the children of a given JSON object given a branchRule with selectors indicating 
			how to select other JSON objects within the JSON structure to parse as children of the JSON object.
			Each child found will be parsed as an individual JSON object, hence calling JsonObjParser recursively.
		</p>	
	</body>
</html>
